package com.mydiceplayer.interfaces.observer;

import com.mydiceplayer.models.ModelSelectPlayer;
import com.mydiceplayer.windows.PopShowSelectPlayerOption.ObserverSelectPlayer;

public class ImplOberverSelectPlayer implements  ObserverSelectPlayer{

	ModelSelectPlayer player;
	
	@Override
	public String toString() {
		return player.toString();
	}

	@Override
	public void onSelectPlayerListener(ModelSelectPlayer player) {
		setPlayer(player);
	}

	public ModelSelectPlayer getPlayer() {
		return player;
	}

	public void setPlayer(ModelSelectPlayer player) {
		this.player = player;
	}

}
